﻿<style type="text/css">
    body { overflow: hidden; }
</style>
@{ 
    bool isMobile = "1".Equals(ViewData["ismobile"].ToString());
}
<form id="form1">
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
        <tr>
            <td style="width:@(isMobile?"100":"200")px; vertical-align:top; padding:5px 5px 0 5px;">
                <iframe id="Iframe1_FilesList" frameborder="0" scrolling="auto" src="Tree@(Html.Raw(ViewData["queryString"]))" style="width:100%;margin:0;padding:0;"></iframe>
            </td>
            <td class="organizesplit">
                <iframe id="Iframe2_FilesList" frameborder="0" scrolling="auto" src="List@(Html.Raw(ViewData["queryString"]))&id=@ViewData["id"]" style="width:100%;margin:0;padding:0;"></iframe>
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        var isSelect = "1" === "@ViewData["isselect"]";
        $(function () {
            var height = isSelect ? $(parent).height() : $(window).height();
            if (isSelect) {
                height = height - 18;
            }
            $('#Iframe1_FilesList').height(height - 10);
            $('#Iframe2_FilesList').height(height - 10);
        });
    </script>
</form>